import request from '@/utils/request'

// 查询收入明细列表
export function listTechnicianConsumeDetail(query) {
  return request({
    url: '/technicianConsumeDetail/technicianConsumeDetail/list',
    method: 'get',
    params: query
  })
}

// 查询收入明细详细
export function getTechnicianConsumeDetail(id) {
  return request({
    url: '/technicianConsumeDetail/technicianConsumeDetail/' + id,
    method: 'get'
  })
}

// 新增收入明细
export function addTechnicianConsumeDetail(data) {
  return request({
    url: '/technicianConsumeDetail/technicianConsumeDetail',
    method: 'post',
    data: data
  })
}

// 修改收入明细
export function updateTechnicianConsumeDetail(data) {
  return request({
    url: '/technicianConsumeDetail/technicianConsumeDetail',
    method: 'put',
    data: data
  })
}

// 删除收入明细
export function delTechnicianConsumeDetail(id) {
  return request({
    url: '/technicianConsumeDetail/technicianConsumeDetail/' + id,
    method: 'delete'
  })
}
